import {
  request
} from '../_utils/request';

function add(data) {
  return request('/api/teacherCard', 'POST', data)
}

function findByUserId(userId) {
  return request('/api/teacherCard/' + userId, 'GET')
}

function getList(type, current, size) {
  return request('/api/teacherCard/list?type=' + type + '&current=' + current + '&size=' + size, 'GET')
}

function getDetailById(id) {
  return request('/api/teacherCard/detail/' + id, 'GET')
}

module.exports = {
  add,
  findByUserId,
  getList,
  getDetailById
};